
#ifndef ENEMY_H
#define ENEMY_H

#include<QPixmap>


class enemy
{
public:
    enemy();

    void updatePosition();

public:
    QPixmap m_enemy1,m_enemy2,m_enemy3,m_enemy4,m_enemy5;
    int m_x,m_x2,m_x3,m_x4,m_x5;
    int m_y,m_y2,m_y3,m_y4,m_y5;
    //边框，碰撞检测
    QRect m_rect1,m_rect2,m_rect3,m_rect4,m_rect5;

    bool m_free;
    bool m_free2;
    bool m_free3;
    bool m_free4;
    bool m_free5;


    int m_speed;
    int e_hp1=5;
    int e_hp2=15;
    int e_hp3=10;

};

#endif // ENEMY_H
